import React, { useState, useEffect, useRef } from 'react';
import { IRouteComponentProps } from 'umi'
import {useModel} from 'umi'
import styles from "./[id].less"
import { ArrowLeftOutlined} from '@ant-design/icons';

const AddCommentPage: React.FC<IRouteComponentProps<{id:string}>> = ({match}) => {
  
  async function backs(){
    history.go(-1)
}
 return(
     <div className={styles.lists}>
      
         <div className={styles.top}>
             <ArrowLeftOutlined className={styles.left} onClick={()=>{backs()}}/>
             <span>填写留言</span>
             <span></span>
         </div> 
         
         <div className={styles.conss}>
                <textarea name="" id="">

                </textarea>
            </div>
            {/* <button>清空</button> */}
            <button onClick={()=>{}}>留言</button>
          {JSON.stringify(match)}
     </div>
 )

}


export default AddCommentPage;
